package com.mc.read.dao.mapper.sys;

import com.mc.read.dao.models.sys.Syspermission;
import com.mc.read.dao.models.sys.SyspermissionExample;
import com.mc.read.dao.vo.TreeNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface SyspermissionMapper {
    int countByExample(SyspermissionExample example);

    int deleteByExample(SyspermissionExample example);

    int deleteByPrimaryKey(Integer permissionid);

    int insert(Syspermission record);

    int insertSelective(Syspermission record);

    List<Syspermission> selectByExample(SyspermissionExample example);

    Syspermission selectByPrimaryKey(Integer permissionid);

    int updateByExampleSelective(@Param("record") Syspermission record, @Param("example") SyspermissionExample example);

    int updateByExample(@Param("record") Syspermission record, @Param("example") SyspermissionExample example);

    int updateByPrimaryKeySelective(Syspermission record);

    int updateByPrimaryKey(Syspermission record);

    Set<String> selectUserPer(Integer userid);

    Set<Integer> slectIdByRoleid(Integer roleid);

    List<TreeNode> selectPerList();

    List<TreeNode> selectRolePer(Integer roleid);

    List<TreeNode> selectMenuList();


    List<TreeNode> selectMenuListByUser(Integer userid);


   List<Integer> selectPerListForList(List perlist);
}